package game;

import java.awt.*;
import java.awt.event.*;
import java.io.IOException;
import javax.swing.*;

@SuppressWarnings({ "unused", "serial" })
public class Gui extends JFrame
{
	public Gui instance;
	
	public Gui(String titolo, int w, int h, boolean visible)
	{
		//-----------------------------------------------------------------------
		super(titolo);
		instance = this;
		setSize(w, h);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setLayout(null);
		setResizable(false);
		//-----------------------------------------------------------------------
		
		Game g;
		try
		{
			g = new Game();
			g.setBounds(getBounds());
			add(g);
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
		
		
		
		
		
		
		//-----------------------------------------------------------------------
		setVisible(visible);
	}
	
	
}
